package javaFeatures;

public class Oop {
    private String name;
    private String ID;
    private String className;
    private String gender;
    private int age;
    private String person;

    public Oop(String name,String ID,String className,String gender,int age,String person){
        this.name=name;
        this.ID=ID;
        this.className=className;
        this.gender=gender;
        this.age=age;
        this.person=person;
    }
    public  String getName(){
        return name;
    }
    public  String getID(){
        return ID;
    }
    public  String getClassName(){
        return className;
    }
    public  String getGender(){
        return  gender;
    }
    public  int getAge(){
        return age;
    }
    public  String getPerson(){
        return person;
    }
    public String infowhole(){
        return "姓名："+name+"，学号："+ID+"，班级："+className+"，性别"+gender+"，年龄"+age+"，性格:"+person;
    }

    public static void main(String[] args){
        Oop student1=new Oop("张三","20233001","数学","男",20,"开朗");
        Oop student2=new Oop("李四","20233002","英语","女",19,"内向");
        Oop student3=new Oop("王二麻子","20233003","语文","男",23,"开朗");

        System.out.println(student1.infowhole());
        System.out.println(student2.infowhole());
        System.out.println(student3.infowhole());
    }

}
